package org.dreamwork.websocket;

import javax.websocket.server.ServerEndpointConfig;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention (RetentionPolicy.RUNTIME)
@Target (ElementType.TYPE)
public @interface IWebSocket {
    String value ()            default "";
    boolean cache ()           default true;
    boolean header ()          default false;
    boolean parameter ()       default false;
    boolean httpSession ()     default false;
    boolean servletContext ()  default false;

    Class<? extends ServerEndpointConfig.Configurator> configurator () default WebSocketHttpConfigurator.class;
}